package org.x.note.polymorphism;

public class TestFeed {
	public static void main(String[] args) {
		// 创建一个饲养员
		Feeder Feeder = new Feeder();
		// 一只猫
		Animal animal = new Cat();
		// 一条鱼
		Food food = new Fish();
		Feeder.feed(animal, food);
		animal = new Dog();
		food = new Bone();
		Feeder.feed(animal, food);
	}

}
